{% extends "projects/base.html" %}

{% load i18n %}
{% load project_tags %}
{% load person_tags %}

{% block head_title %}{{ object.title }} (Project){% endblock %}

{% block tab_id %}id="rtab_projects"{% endblock %}

{% block body %}
        <div class="right_panel">
            <div class="projects">
                <h2>{% trans "Projects" %}</h2>
                <table width="100%">
		  <tr>
		    <th>Code</th>
		    <td>{{ object.code }}</td>
		  </tr>
		  <tr>
		    <th>Title</th>
		    <td>{{ object.title }}</td>
		  </tr>
		  <tr>
		    <th>Start Date</th>
		    <td>{{ object.start_date }}</td>
		  </tr>
		  <tr>
		    <th>End Date</th>
		    <td>{{ object.end_date }}</td>
		  </tr>
		  <tr>
		    <th>Members</th>
		    <td>
		      <ul>
		      {% for person in object.member.all %}
		        <li><a href="{% url person_detail object_id=person.id %}">{{ person.code }}: {{ person.first_name }} {{ person.last_name }}</a> {% person_status person %}</li>
		      {% endfor %}
		      </ul>
	        </table>
            </div>
        </div>

        <h3>Work Packages <a href="{% url project_add_work_package project_id=object.id %}"><img src="{{ MEDIA_URL }}icons/add.png" alt="Add" title="Add a new work package"/></a></h3>
	{% list_project_work_packages object %}
{% endblock %}
